package LoginData;

import org.testng.annotations.DataProvider;

/**
 * @ClassName LoginDataParams
 * @Deacription TODO
 * @Author Wenhowe
 * @Date 2020/4/29 16:20
 * @Version 1.0
 **/

public class LoginDataParams {

    /**
     * 提供用户登录测试方法数据驱动
     *
     * @return
     */
    @DataProvider(name = "getUsers")
    public Object[][] getUsers() {
/*        Object[][] object;
        object = new Object[][] {{"","","用户名密码不能为空"},{"admin","admin","欢迎管理员"}, {"zhangsan","123456","欢迎zhangsan"}};
        return object;*/
        return new Object[][]{
                {"", "", "用户名密码不能为空"},
                {"admin", "admin", "欢迎管理员"},
                {"zhangsan", "123456", "欢迎zhangsan"}
        };
    }
}
